<template>
  <div class="rounds" @click="helpClick">
    <div class="circle">
      <span>我的</span>
      <span>奖品</span>
    </div>
    <div class="circle_bottom animation"></div>
    <div class="circle_bottom2 animation2"></div>
  </div>
</template>

<script>
export default {
  props: ["config"],
  data() {
    return {};
  },
  methods: {
    helpClick() {
      this.$emit('helpPlugChange')
    }
  },
};
</script>

<style lang="scss" scoped>
.animation {
  -webkit-animation: twinkling 2.1s infinite ease-in-out;
  animation: twinkling 2.1s infinite ease-in-out;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
.animation2 {
  -webkit-animation: twinkling 2.1s infinite ease-in-out;
  animation: twinkling 2.1s infinite ease-in-out;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
.rounds {
  position: fixed;
  z-index: 20;
  padding: 13px;
  right: 0px;
  bottom: 79px;
  .circle {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    background: var(--theme_color);
    border-radius: 100%;
    width: 70px;
    height: 70px;
    z-index: 999;
    text-align: center;
    top: 18px;
    left: 18px;
    position: absolute;
    span {
      color: #fff;
      font-size: 18px;
    //   line-height: 70px;
    }
    :nth-child(1) {
      line-height: 39px;
    }
  }
  .circle_bottom {
    background: var(--theme_color);
    border-radius: 100%;
    width: 70px;
    height: 70px;
    filter: alpha(opacity=40);
    z-index: -100;
    position: absolute;
    top: 18px;
    left: 18px;
  }
  .circle_bottom2 {
    background: var(--theme_color);
    border-radius: 100%;
    width: 80px;
    height: 80px;
    filter: alpha(opacity=20);
    z-index: -110;
    position: relative;
  }
}
@keyframes twinkling {
  0% {
    opacity: 0.2;
    -webkit-transform: scale(1);
  }
  50% {
    opacity: 0.5;
    -webkit-transform: scale(1.12);
  }
  100% {
    opacity: 0.2;
    -webkit-transform: scale(1);
  }
}
</style>